package com.ess.project.examine.record.compute;

/**
 * @Description: 策略上下文
 * @Date: Created in 8:44 下午 2021/3/11
 * @Author: daihui
 * @Modified By:
 */
public class ExamineContext<T extends Number> {

    private final BaseExamine<T> baseExamine;

    public ExamineContext(BaseExamine<T> baseExamine) {
        this.baseExamine = baseExamine;
    }

    @SuppressWarnings({"unchecked", "varargs"})
    public final Object executeStrategy(Object args, String gender, T... grade) {
        return baseExamine.compute(args, gender, grade);
    }
}
